<?php /* Smarty version Smarty-3.0.8, created on 2011-08-03 22:49:28
         compiled from "./templates/tattoo\magazin_single.tpl" */ ?>
<?php /*%%SmartyHeaderCode:317244e39d07859bae4-54017743%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a40f007b1eabd2439e86c4e5dfcb4eb6775dc7dc' => 
    array (
      0 => './templates/tattoo\\magazin_single.tpl',
      1 => 1312411601,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '317244e39d07859bae4-54017743',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_date_format')) include 'class/smarty/plugins\modifier.date_format.php';
?><div class="page">
		<div class="sidebar_page">
			<!--Content start (.sidebar_page)-->
			<div class="content">
                            <?php  $_smarty_tpl->tpl_vars['currentPost'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('singlePost')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['currentPost']->key => $_smarty_tpl->tpl_vars['currentPost']->value){
?>
				<div id="articles">
					<div class="page_capt clearfix">
						<div class="fl_left">
							<h2><?php echo $_smarty_tpl->tpl_vars['currentPost']->value['naslov'];?>
</h2>
						</div>
						<div class="fl_right filter_opt">
							<p class="tRight red"><em>Objavljeno: <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['currentPost']->value['datum'],"%d.%m.%Y");?>
</em></p>
							<p class="tRight red"><em>Autor: <?php echo $_smarty_tpl->tpl_vars['currentPost']->value['username'];?>
</em></p>
							<br />
							<div id="share_this_block">
								<span  class='st_facebook_button' displayText='Facebook'></span><span  class='st_twitter_button' displayText='Tweet'></span><span  class='st_digg_button' displayText='Digg'></span>
							</div>
						</div>
					</div>
					
					<div class="clearfix page_body" id="single_post">
						<?php echo $_smarty_tpl->tpl_vars['currentPost']->value['tekst'];?>

					</div><!--end of .page_body-->
				</div>
                            <?php }} ?>                    
				
				<!-- Page bottom blocks -->
				<div class="cols3spanL" id="botom_boxes">
					<div class="col">
						<div id="comments">
							<h2>Komentari</h2>
                                                        <?php  $_smarty_tpl->tpl_vars['numOfcomment'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('numberOfComments')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['numOfcomment']->key => $_smarty_tpl->tpl_vars['numOfcomment']->value){
?>
							<p>Ukupno <?php echo $_smarty_tpl->tpl_vars['numOfcomment']->value;?>
 komentara.</p>
                                                        <?php }} ?>
							<ul>
								<?php  $_smarty_tpl->tpl_vars['commentMessage'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('commentMessages')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['commentMessage']->key => $_smarty_tpl->tpl_vars['commentMessage']->value){
?>
                                                                <li class="clearfix" id="comment-id-">
									<img class="fl_left" src="<?php if ($_smarty_tpl->tpl_vars['commentMessage']->value['slika']!=''){?><?php echo $_smarty_tpl->getVariable('media')->value;?>
/autori/<?php echo $_smarty_tpl->tpl_vars['commentMessage']->value['username'];?>
/slike_za_profil/<?php echo $_smarty_tpl->tpl_vars['commentMessage']->value['slika'];?>
<?php }else{ ?><?php echo $_smarty_tpl->getVariable('media')->value;?>
/images/user_img.png<?php }?>" width="40" height="40" />
									<span><a class="comment_aut" href="<?php echo $_smarty_tpl->getVariable('url')->value;?>
/?page=profil&clan_id=<?php echo $_smarty_tpl->tpl_vars['commentMessage']->value['clan_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['commentMessage']->value['username'];?>
</a> </span><?php echo $_smarty_tpl->tpl_vars['commentMessage']->value['komentar'];?>

									<div><?php echo $_smarty_tpl->tpl_vars['commentMessage']->value['datum_vreme_upisa'];?>
</div>
								</li>
								<?php }} ?>
							</ul>
							<h2 id="addCommentPage">Dodajte komentar</h2>
						<?php if ($_smarty_tpl->getVariable('userIsLogged')->value){?>
                                                    
                                                    
                                                        <form id="comments_form" name="comments_form" action="handlers/commentinput.php?redirectUrl=<?php echo $_smarty_tpl->getVariable('currentPage')->value;?>
" method="post">
								<label for="comment_content">Komentar:</label><br />
								<textarea id="comment_content" name="komentar" cols="" rows="4"></textarea>
								<p class="tRight"><input id="comment_submit" name="comment_submit" type="submit" value="Dodaj komentar" /></p>
									<input name="username" type="hidden" value="<?php echo $_smarty_tpl->getVariable('user')->value['username'];?>
" />
									<input name="p" type="hidden" value="<?php echo $_smarty_tpl->getVariable('currentPost')->value['id'];?>
" />
							</form>
						<?php }else{ ?>
							<h3>Ulogujte se kako bi dodali komentar. Hvala.</h3>
							<br />
							<p><a class="red" href="#account_box">Prijavi se</a> | <a class="red" href="<?php echo $_smarty_tpl->getVariable('url')->value;?>
/?page=registracija">Registruj se</a></p>	
						<?php }?>
						</div>
					</div>
					<div class="col"><?php $_template = new Smarty_Internal_Template("chat.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?></div>
				</div>
				
			</div>
			<!--Content end (.sidebar_page)-->
			
			<div class="sidebar"><?php $_template = new Smarty_Internal_Template("sidebar_banners.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?></div>
		</div>
	</div>